/*
 * @Author: caozaihui 15908754730@163.com
 * @Date: 2024-06-14 00:47:40
 * @LastEditors: caozaihui 15908754730@163.com
 * @LastEditTime: 2024-06-19 14:17:25
 * @FilePath: \MessageWall\src\apis\login.js
 * @Description: 用户登录相关接口
 */

import httpInstance from "@/utils/http";

//获取用户基本信息
//获取验证码
export function getCaptha(para){
    return httpInstance({
        url:'/anno/captcha',
        responseType: 'blob',
        method:'get',
        params:{
            key:para.value
        }
    })
}
//登录
export function login(loginPara){

    return httpInstance({
        url:'/anno/login/',
        method:'post',
        data:loginPara
    })
}
export function register(loginPara){
    return httpInstance({
        url:"/anno/register",
        method:'post',
        data:loginPara
    })
}
export function register2(data){
    return httpInstance({
        url:"/anno/register2",
        method:'put',
        data:data
    })
}